home *** CD-ROM | disk | FTP | other *** search
- if argv[1]>1
- return argv[1]*fact(argv[1]-1)
- else
- return 1
- endif
- # fact - recursive calculation of factorial function. To run, type:
- # eval fact(6)
- # or some other number.
- #
- # Fact is presented as is; no warrantee is either expressed or implied
- # as to it's suitability to any purpose whatsoever. You assume all the
- # risk for all damage, even if caused by a defect in the software,
- # no matter how awful.
-